package com.own.business.system.menu.entity.po;

import com.baomidou.mybatisplus.annotation.FieldStrategy;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.own.component.common.base.entity.po.BasePo;
import com.own.constant.ConstantBeanSuffix;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
import lombok.ToString;
import lombok.experimental.Accessors;

import java.io.Serializable;

/**
 * SystemMenu
 *
 * @author chenxueli
 * @date 2024-03-31 09:22:58
 */
@Schema(title = "系统菜单" + ConstantBeanSuffix.PO)
@Getter
@Setter
@ToString
@Accessors(chain = true)
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "own_system_menu")
public class SystemMenu extends BasePo implements Serializable {

    /**
     * 菜单编码
     */
    private String code;

    /**
     * 菜单标题
     */
    private String title;

    /**
     * 父级菜单id
     */
    @TableField(updateStrategy = FieldStrategy.ALWAYS)
    private Long parentId;

    /**
     * 菜单路径
     */
    @TableField(updateStrategy = FieldStrategy.ALWAYS)
    private String path;

    /**
     * 菜单图标
     */
    @TableField(updateStrategy = FieldStrategy.ALWAYS)
    private String icon;

    /**
     * 是否禁用 1=禁用 0=可用
     */
    private Integer isDisable;

    /**
     * 是否显示 1=显示 0=隐藏
     */
    private Integer isShow;

    /**
     * 权限标识
     */
    @TableField(updateStrategy = FieldStrategy.ALWAYS)
    private String permission;

    /**
     * 排序
     */
    private Integer sortOrder;

    /**
     * 客户端id
     */
    private String clientId;

    /**
     * 菜单链名称
     */
    @TableField(updateStrategy = FieldStrategy.ALWAYS)
    private String chainName;

    /**
     * 菜单链ids
     */
    @TableField(updateStrategy = FieldStrategy.ALWAYS)
    private String chainIds;

}
